<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
    <jsp:include page="incHead.jsp">
        <jsp:param name="title" value="mainPage.title" />
    </jsp:include>
    <body>        
        <jsp:include page="loginHeader.jsp"/>
        <div id="container">
            <jsp:include page="incMenu.jsp"/> 
            <div id="content">	
                <form name='f' action="<c:url value='j_spring_security_check' />"
                      method='POST'>
                    <table>
                        <tr>
                            <td><fmt:message key="user"/>:</td>
                            <td><input type='text' name='j_username' value=''>
                            </td>
                        </tr>
                        <tr>
                            <td><fmt:message key="password"/>:</td>
                            <td><input type='password' name='j_password' />
                            </td>
                        </tr>
                        <tr>
                            <td colspan='2'><input name="submit" type="submit"
                                                   value="submit" />
                            </td>
                        </tr>
                    </table>
                </form>
                <c:if test="${not empty error}">
		<div class="errorblock">
                    <fmt:message key="loginError"/>
		</div>
                </c:if>
            </div>        
    </body>
</html>